<script type="text/javascript">
	var name = 'ExampleTwo';
	var container = '{container}';
	var ex = $('div#'+container);
	var update = function()
	{
		var cont = $('.tester');
		$.get('{base_url}module/gdata/'+name,
			function(res){
				if(0 == res.runned) cont.html(tpl['message']);
				else cont.html(tpl['runned']);
				if(debug)
				{
					json = res;
					console.log('responce: ');
					console.log(json);
				}
				cont.autoRender(res);
			},'json'
		     );
	}
	
	$(document).ready(function(){
		nowRn.delegate('','updRn', update);
		setInterval(update, 30000);
		
		tpl = {message : '', runned : ''};
		tpl['message'] = "<tr class='message'><td><div class='text'></div></td></tr>" ;
		$.get('{base_url}module/tpl/runned', function(res){ tpl['runned'] = res; update('');});
		
	});
</script>
<table class='tester'>
</table>
